import request from "@/api/request";
import {
  apiClusterJava,
} from "@/api/root";

// 开始问答模式分析
export const startAskAnalysis = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/startAskAnalysis',
    data
  );
};

// 获取职位问题
export const getZpQuestion = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/getZpQuestion',
    data
  );
};

// 开始上传模式分析
export const startUploadAnalysis = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/startUploadAnalysis',
    data
  );
};

// 获取分析进程
export const getTaskProgress = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/getTaskProgress',
    data
  );
};

// 导出简历附件
export const exportCustomizedResume = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/exportCustomizedResume',
    data
  );
};

// 同步在线简历
export const syncCustomizedResume = (data) => {
  return request.webservice(
    'mp',
    `${apiClusterJava}/api-yp/open/index`,
    '/resumeCustomizeOpen/syncCustomizedResume',
    data
  );
};

